package com.powernode.springmvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author: 曾铖坚
 * @Date: 2024/10/9 0:18
 * @Version: 1.0.0
 */
@Controller
public class IndexController {
    @RequestMapping(value = "/index")
    public String toIndex(){
        System.out.println("IndexController#toIndex() -----> 处理器方法执行了");
        return "index";
    }

    @RequestMapping(value = "/ok")
    public String toOk(){
        System.out.println("IndexController#toOk() -----> 处理器方法执行了");
        return "ok";
    }
}
